﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/PageTemplates/Admin.master" AutoEventWireup="true" CodeFile="ManageSystems.aspx.cs" Inherits="Admin_LCASystem_ManageSystems" %>
<%@ Register TagPrefix="uc" TagName="SystemSearchFilter" Src="Controls/SystemSearchFilter.ascx" %>
<%@ Register TagPrefix="uc" TagName="SystemList" Src="Controls/SystemList.ascx" %>
<%@ Register TagPrefix="uc" TagName="Paginator" Src="../Common/Controls/Paginator.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MPHead" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MPContent" Runat="Server">
<asp:PlaceHolder ID="plhManageFlows" runat="server">
  <h1>Manage Systems</h1>
  <asp:Panel id="pnlSearchFilter" runat="server">
    <uc:SystemSearchFilter ID="ctlSystemSearchFilter" runat="server" 
      OnSubmitClicked="ctlUserSearchFilter_SubmitClicked"
       />

  </asp:Panel>
  <asp:Panel id="pnlResult" runat="server">
    <uc:SystemList ID="ctlSystemList" runat="server"  />
    <div style="text-align:right;margin-right:10px">
      <uc:Paginator id="ctlPaginator" ShowPageSizeDropDown="true" runat="server" />
    </div>
  </asp:Panel>
<%--
      <uc:UserSearchAdvancedFilter id="ctlUserSearchAdvancedFilter" runat="server" 
      OnSubmitClicked="ctlUserSearchAdvancedFilter_SubmitClicked"
      OnSwitchToSimpleSearchClicked="ctlUserSearchAdvancedFilter_SimpleSearchClicked" />--%>
</asp:PlaceHolder>

<script type="text/javascript">
//<![CDATA[
    function test(button) {
    }
//]]>
</script>


</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MPFooter" Runat="Server">
    <asp:PlaceHolder ID="plhFooter" runat="server">
    <div class="footer">
      <asp:Button ID="btnDeleteSelected" CssClass="" runat="server" Text="Delete selected items" OnClientClick="return confirmDeleteSelected();" OnClick="btnDeleteSelected_Click" />
      <asp:Button ID="btnCreateNew" CssClass="" runat="server" Text="Create a System" OnClick="btnCreateNew_Click"/>
      &nbsp;&nbsp;&nbsp;
      <asp:Button ID="btnNewSearch" CssClass="" runat="server" Text="New search" OnClick="btnNewSearch_Click" />
     
      <script type="text/javascript">
      //<![CDATA[


          function confirmDeleteSelected() {
              var selected = getSelectedItems();

              if (selected > 0)
                  return confirm("Are you sure you want to delete selected system?");
              else {
                  alert('Please select item(s) to be deleted.');
                  return false;
              }
          }

          $(document).ready(function () {

          });
      //]]>
      </script>
    </div>
  </asp:PlaceHolder>

</asp:Content>

